home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / utmisc1 / alcun101.lha / src / resources.h < prev    next >
C/C++ Source or Header  |  1995-10-31  |  3KB  |  104 lines

  1. /*
  2.  *  This file is part of x48, an emulator of the HP-48sx Calculator.
  3.  *  Copyright (C) 1994  Eddie C. Dost  (ecd@dressler.de)
  4.  *
  5.  *  This program is free software; you can redistribute it and/or modify
  6.  *  it under the terms of the GNU General Public License as published by
  7.  *  the Free Software Foundation; either version 2 of the License, or
  8.  *  (at your option) any later version.
  9.  *
  10.  *  This program is distributed in the hope that it will be useful,
  11.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *  GNU General Public License for more details.
  14.  *
  15.  *  You should have received a copy of the GNU General Public License
  16.  *  along with this program; if not, write to the Free Software
  17.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20. /* $Log: resources.h,v $
  21.  * Revision 1.3  1995/01/11  18:20:01  ecd
  22.  * major update to support HP48 G/GX
  23.  *
  24.  * Revision 1.2  1994/12/07  20:16:41  ecd
  25.  * added more resource get functions
  26.  *
  27.  * Revision 1.2  1994/12/07  20:16:41  ecd
  28.  * added more resource get functions
  29.  *
  30.  * Revision 1.1  1994/12/07  10:16:15  ecd
  31.  * Initial revision
  32.  *
  33.  *
  34.  * $Id: resources.h,v 1.3 1995/01/11 18:20:01 ecd Exp ecd $
  35.  */
  36. #ifndef _RESOURCES_H
  37. #define _RESOURCES_H 1
  38.  
  39. #include "global.h"
  40.  
  41. /* AMIGA !
  42. #include <X11/Xlib.h>
  43. #include <X11/Xresource.h>
  44. */
  45.  
  46. extern int     verbose;
  47. extern int     quiet;
  48. extern int     useTerminal;
  49. extern int     useSerial;
  50. extern int     useXShm;
  51. extern int     useDebugger;
  52. extern char   *serialLine;
  53. extern int     initialize;
  54. extern int     resetOnStartup;
  55. extern char   *romFileName;
  56. extern char   *homeDirectory;
  57.  
  58. extern char   *progname;
  59. extern char   *res_name;
  60. extern char   *res_class;
  61.  
  62. /* Amiga !
  63. extern XrmDatabase  rdb;
  64. */
  65.  
  66. extern void     usage               __ProtoType__ ((void));
  67. extern void     show_version            __ProtoType__ ((void));
  68. extern void     show_copyright          __ProtoType__ ((void));
  69. extern void     show_warranty          __ProtoType__ ((void));
  70. extern void    get_resources        __ProtoType__ ((void));
  71.  
  72. /* Amiga !
  73. extern char *    get_string_resource_from_db __ProtoType__ ((XrmDatabase db,
  74.                                 char *name,
  75.                                 char *class));
  76. extern char *    get_string_resource    __ProtoType__ ((char *name,
  77.                             char *class));
  78. extern int    get_boolean_resource    __ProtoType__ ((char *name,
  79.                             char *class));
  80. extern int    get_mnemonic_resource    __ProtoType__ ((char *name,
  81.                             char *class));
  82. extern Visual * get_visual_resource    __ProtoType__ ((Display *dpy,
  83.                             char *name,
  84.                             char *class,
  85.                             unsigned int *depth));
  86. extern XFontStruct * get_font_resource    __ProtoType__ ((Display *dpy,
  87.                             char *res_name,
  88.                             char *res_class));
  89. */
  90. #ifndef isupper
  91. # define isupper(c)  ((c) >= 'A' && (c) <= 'Z')
  92. #endif
  93. #ifndef islower
  94. # define islower(c)  ((c) >= 'a' && (c) <= 'z')
  95. #endif
  96. #ifndef _tolower
  97. # define _tolower(c)  ((c) - 'A' + 'a')
  98. #endif
  99. #ifndef _toupper
  100. # define _toupper(c)  ((c) - 'a' + 'A')
  101. #endif
  102.  
  103. #endif /* !_RESOURCES_H */
  104.